S
S
sarkisssik2018-10-18 23:12:05
PHP
sarkisssik, 2018-10-18 23:12:05

Characters in text interfere with XML validation. How to decide?

When generating xml, sometimes it gets information that contains some html-images (screen), and as a result - an error when validating xml .
Can you tell me how to exclude such characters?
5bc8e90dec562830987722.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
serginhold, 2018-10-19
@serginhold

https://ru.m.wikipedia.org/wiki/CDATA
Perhaps this is a question

X
xmoonlight, 2018-10-18
@xmoonlight

With the help of "white" list and regex expressions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question