If the title and url parameters in a citation template are defined, then the title is linked. If the title contains certain characters, then the link is broken and the display is malformed. The standard fix is to encode the offending characters in the title field, however some editors have been wrapping the value in {{tag|nowiki|o}}. While the visual rendering is fine, the metadata in the COinS output is mangled, with the strip markers exposed; see [[Help:Strip markers]] for details.
We need to remove {{tag|nowiki|o}} tags and encode characters in the title and chapter fields.
* remove {{tag|nowiki|o}} and {{tag|nowiki|c}}
* change <code>newline</code> to <code>space </code>
* change <code>[</code> to <code>&#91;</code>
* change <code>]</code> to <code>&#93;</code>
* change <code>|</code> to <code>&#124;</code>
:This needs clarification. Is it requested to remove "encode[d] characters" (as well as "nowiki" constructs)? Or is that certain characters (e.g., square brackets) should be represented by their codes ("&#91;")? ~ @J. Johnson 21:57, 19 January 2012 (UTC)