openSUSE / suse-xsl

DocBook XSL Stylesheets for SUSE branding
Other
11 stars 10 forks source link

Strip HTML & entities from generated bug report titles #421

Closed ghost closed 2 years ago

ghost commented 4 years ago

via @gameboy974:

Our report-bug links generate slightly garbage-looking titles when we have a title that includes HTML or entities, e.g. with a headline markup like: <h1>The <code class="command">rubberducky</code> and how it helps you relax&mdash;with ease</h1>, we'd get a bug report titled [doc] The <code class="command">rubberducky</code> and how it helps you relax&mdash;with ease. That can look a bit irritating to the reporter, even though our bug titles are clearly made to be edited anyway. May also might mess up/make less relevant Bugzilla search query results.

ghost commented 2 years ago

Fixed in the suse2022-ns stylesheets, we just use textContent there. Not fixed in earlier stylesheets. Closing nonetheless.