laminas / laminas-escaper

Securely and safely escape HTML, HTML attributes, JavaScript, CSS, and URLs
https://docs.laminas.dev/laminas-escaper/
BSD 3-Clause "New" or "Revised" License
191 stars 20 forks source link

Incorrect documentation for Escaper->escapeCSS #16

Open bvlgn opened 3 years ago

bvlgn commented 3 years ago

I tried to apply the examples from your "Escaping Cascading Style Sheets". These weren't working for me at all. I posted a question regarding this in the forum and it was pointed out to me by @froschdesign that the documentation was actually incorrect.

The current docs explains that escapeCss encodes the complete CSS while in fact it's only usable to encode for example a contained URL.

The documentation should be updated with correct examples and explaination.