Задать вопрос

Тел: +7 965 3737 888

431

Просмотров

1

Ответов

Clean text pasted from word into RTE

Utility function I am currently using to clean up taste pasted from Word into a Tiny MCE enabled Text field.

Вопрос полезен? Да0/Нет0
file_5019.py(850.0б)
None

Ответы (1):

Ответewalstad:08.06.2009
Ответ полезен? Да0/Нет0

The regex's are getting compiled once each time the function is called. They don't change between calls to clean_word so why not move them to the the module level and compile them only once there?