In handle_data(), use emitRawText() instead of emitText(), so that
<script> and <style> elements aren't mangled. By nature of the parser, bare < and & cannot occur in the input data (the parser raises an exception when it encounters these); bare > is harmless.
Showing
Please register or sign in to comment