Re: Character Entity References



Mark A. Boyd wrote:
How do you deal with display data that may be required in both HTML and/or PDF? ie: italic word(s) within the data.

My current solution is storing the <em> tags in the DB, but I don't really like it for the very reasons you stated.

Data must be in native form for every media passed. If media have no native form for this type of data you have to develop it or better use already existing form. Ampersand have native form '&' in SQL and '&amp;' in HTML so you need to convert it when change media. But 'Italic text fragment' have no native form in SQL so you can use existing form '<em>...</em>' or '<i>...</i>' and convert it only when transferring data PDF <-> HTML or database, it's O.k.
.