Escaping and sanitizing SVGs in metabox textarea

Question

I want to include inline SVGs in a metabox textarea.

That’s easy. What’s killing me is how do I sanitize the textarea before saving the postmeta, and how do I escape it?

Halp?

Thanks!

0
Chet Hardin 8 months 2020-12-09T18:10:20-05:00 0 Answers 7 views 0

Leave an answer

Browse
Browse