* xmlStringDecodeEntities: * @ctxt: the parser context * @str: the input string * @what: combination of XML_SUBSTITUTE_REF and XML_SUBSTITUTE_PEREF * @end: an end marker xmlChar, 0 if none * @end2: an end marker xmlChar, 0 if none * @end3: an end marker xmlChar, 0 if none * * DEPRECATED: Internal function, don't use. * * Returns A newly allocated string with the substitution done.
| 2858 | * must deallocate it ! |
| 2859 | */ |
| 2860 | xmlChar * |
| 2861 | xmlStringDecodeEntities(xmlParserCtxtPtr ctxt, const xmlChar *str, |
| 2862 | int what ATTRIBUTE_UNUSED, |
| 2863 | xmlChar end, xmlChar end2, xmlChar end3) { |
| 2864 | if ((ctxt == NULL) || (str == NULL)) |
| 2865 | return(NULL); |
| 2866 | |
| 2867 | if ((end != 0) || (end2 != 0) || (end3 != 0)) |
| 2868 | return(NULL); |
| 2869 | |
| 2870 | return(xmlExpandEntitiesInAttValue(ctxt, str, 0)); |
| 2871 | } |
| 2872 | |
| 2873 | /************************************************************************ |
| 2874 | * * |
nothing calls this directly
no test coverage detected