Bug 750782 - Special characters in titles need to be escaped
Summary: Special characters in titles need to be escaped
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: PressGang CCMS
Classification: Community
Component: CSProcessor
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Lee Newson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-02 11:31 UTC by Joshua Wulf
Modified: 2014-10-19 22:59 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-04 10:02:52 UTC


Attachments (Terms of Use)

Description Joshua Wulf 2011-11-02 11:31:47 UTC
The following substitutions need to be made in all titles:

< = &lt;
> = &gt;
& = &amp;


So, for example: the Content Spec directive

Section: This is a <section>

renders as:

<section>
  <title>This is a &lt;section&gt;</title>

Otherwise the characters <>& will break Docbook xml, because they are meaningful as metadata indicators.

Comment 1 Lee Newson 2011-11-03 00:08:01 UTC
Done all <>& are replaced inside of the <title> element. Will be released in Build 13.

Comment 2 Lee Newson 2011-11-03 00:20:57 UTC
Edit sorry Josh i marked off the wrong one when I was going through setting completed bugs.

Anyways I tested this out and from what I can see old versions were already doing this. Could you give an example that this failed to do it on?

Comment 3 Joshua Wulf 2011-11-04 10:02:52 UTC
No examples to hand.


Note You need to log in before you can comment on or make changes to this bug.