Next in thread → Next in month →

Re: [xml-dev] What characters can go into a CDATA section and a comment? (I found inconsistencies)

From
Liam R. E. Quin <>
To
Peter Flynn <>,
Date
2022-03-24T14:52:40Z
ID
<>
Thread
Re: [xml-dev] What characters can go into a CDATA section and a comment? (I found inconsistencies)
On Thu, 2022-03-24 at 08:28 +0000, Peter Flynn wrote:
> 
> CDATA sections are also used by many web developers unsure of exactly
> /what/ a user is going to input, and exactly /when/ in subsequent 
> non-XML processes the markup is going to be stripped, so they use it
> as 
> a safety-net of last resort, which often goes wrong; 

Yup, this is why CDATA injection attacks are a thing.

Little Bobby Tables now works as a back end developer...


-- 
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations:  http://www.fromoldbooks.org
Next in thread → Next in month →