Forum How do I...?

prince-bookmark-label and HTML entities

roychen
Hello, I'm having some problems with the prince-bookmark-label property, specifically, the use of HTML entities within that property.

Here is some sample code:

<div id="testing" style="prince-bookmark-level: 1; prince-bookmark-label: attr(title)" title="&amp;quot;testing&amp;quot;">


This creates a PDF bookmark with the label " &quot;testing&quot; ", not quite what I expected.

The &apos; HTML entity does not seem to work when used in attr(title) as well.

Am I doing something wrong here?

Thanks.
mikeday
This should work:
title="&quot;testing&quot;"

The entities are only necessary to escape the quotes from the XML or HTML parser.
roychen
That worked, thank you very much, mikeday!