When pasting text into WYMeditor, invalid XHTML results

Issue #2 resolved
Luke Plant
repo owner created an issue

Additional </span>s at the end seemed to be created.

Also, it would be better if all inline markup was stripped when pasting from Word.

Could possibly be work for the WYMeditor guys.

Comments (3)

  1. Luke Plant reporter

    Both the issue with Safari inserting '</span>' and the unwanted 'style=' attributes can be sorted out server side by using something like BeautifulSoup or libtidy to parse the invalid HTML and clean it up. We then pass this cleaned HTML to the normal semanticeditor routines.

  2. Log in to comment