Menu

Commit [r2976]  Maximize  Restore  History

Add two methods to the `Markup` class:

`stripentities(keepxmlentities=False)`:: Replaces all character or numeric entities in the text with equivalent UTF-8 characters, optionally keeping the core XML named entities in place.
`plaintext(keeplinesbreaks=True)`:: Strip all tags and entities from the text, and optionally also replace line breaks with regular spaces (replacing the `rss_title` method).

cmlenz 2006-03-09

changed /trunk/trac/Timeline.py
changed /trunk/trac/tests/util.py
changed /trunk/trac/util.py
changed /trunk/trac/versioncontrol/web_ui/util.py
/trunk/trac/Timeline.py Diff Switch to side-by-side view
Loading...
/trunk/trac/tests/util.py Diff Switch to side-by-side view
Loading...
/trunk/trac/util.py Diff Switch to side-by-side view
Loading...
/trunk/trac/versioncontrol/web_ui/util.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB