[vlc-devel] commit: Properly handle < > & " in html text renderer. ( Laurent Aimar )
Antoine Cellerier
dionoea at videolan.org
Mon Sep 22 23:13:03 CEST 2008
On Mon, Sep 22, 2008, git version control wrote:
> +static void HandleMarkup( char *psz_node )
> +{
> + static const struct
> + {
> + const char *psz_pattern;
> + char i_char;
> + } p_replace[] = {
> + { "<", '<' },
> + { ">", '>' },
> + { "&", '&' },
> + { """, '"' },
> + /* This one will always match */
> + { "&", '&' }
> + };
This looks like a duplicate of core function resolve_xml_special_chars()
(well ... the core function supports all the possible special chars)
--
Antoine Cellerier
dionoea
More information about the vlc-devel
mailing list