mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
*! Do not include dsl source in html result. This stops wrecking up html
when said source contains --> mistakenly treated as an end of comment. Rather than escape it, we just don't include the source at all.
This commit is contained in:
parent
c09a353c99
commit
1504491ac8
|
@ -630,7 +630,10 @@ string DslDictionary::dslToHtml( wstring const & str )
|
|||
if ( html[ x ] == '\n' )
|
||||
html.insert( x + 1, "</p><p>" );
|
||||
|
||||
return "<!-- DSL Source:\n" + Utf8::encode( str ) + "\n-->"
|
||||
return
|
||||
#if 0 // Enable this to enable dsl source in html as a comment
|
||||
"<!-- DSL Source:\n" + Utf8::encode( str ) + "\n-->"
|
||||
#endif
|
||||
"<p>" + html + "</p>";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue