Page MenuHomePhabricator

html2wt: Parsoid doesn't escape '=' in template args properly
Open, MediumPublic

Description

See below:

[subbu@earth:~/work/wmf/parsoid] cat /tmp/html
<span typeof="mw:Transclusion" data-mw="{&quot;parts&quot;:[{&quot;template&quot;:{&quot;target&quot;:{&quot;href&quot;:&quot;Template:Small&quot;,&quot;wt&quot;:&quot;Small&quot;},&quot;params&quot;:{&quot;1&quot;:{&quot;wt&quot;:&quot;<span style=\&quot;color:green\&quot;>green span text</span>&quot;}}}}]}"></span>

[subbu@earth:~/work/wmf/parsoid] php bin/parse.php --html2wt < /tmp/html
{{Small|<span style="color:green">green span text</span>}}