[dw-free] comment preview with spellcheck shows raw html
[commit: http://hg.dwscoalition.org/dw-free/rev/cae657bb4c2e]
http://bugs.dwscoalition.org/show_bug.cgi?id=681
Fix display of
in comment preview with spellcheck. (Will show up as
line breaks, not as escaped HTML tags)
Patch by
afuna.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=681
Fix display of
in comment preview with spellcheck. (Will show up as
line breaks, not as escaped HTML tags)
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/talklib.pl
-------------------------------------------------------------------------------- diff -r c2a33a479a66 -r cae657bb4c2e cgi-bin/talklib.pl --- a/cgi-bin/talklib.pl Tue Jun 30 13:50:28 2009 +0000 +++ b/cgi-bin/talklib.pl Tue Jun 30 13:57:14 2009 +0000 @@ -3499,6 +3499,8 @@ sub make_preview { my $s = new LJ::SpellCheck { 'spellcommand' => $LJ::SPELLER, 'color' => '<?hotcolor?>', }; $spellcheck_html = $s->check_html(\$event); + # unescape the <br />s for readability. All other HTML remains untouched. + $spellcheck_html =~ s/<br \/>/<br \/>/g; } $ret .= "$BML::ML{'/talkpost_do.bml.preview.subject'} " . LJ::ehtml($cleansubject) . "<hr />\n"; --------------------------------------------------------------------------------