Allows to check if the provided string have escape sequences that must be defined by using the entity reference rather the value itself.
This function is useful in the sense it allows to know if a particular content will contain elements not allowed by the XML 1.0 definition to be placed directly (like &, <, ;, ' and ").
- Parameters:
-
| content | The content to check. |
| content_size | The size of the content to be checked. If -1 is provided, the function will calculate the content length. |
| added_size | An integer reference where the additional size variable will be added. This additional size will be the space required to replace non-valid characters with entity references. This parameter is optional, so passing a NULL value is allowed. |
- Returns:
- true if the string contains non valid sequences that must be escaped using entity references.