[vlc-devel] commit: Properly handle < > & " in html text renderer. ( Laurent Aimar )
Laurent Aimar
fenrir at via.ecp.fr
Mon Sep 22 23:30:01 CEST 2008
On Mon, Sep 22, 2008, Antoine Cellerier wrote:
> 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)
Yes it is, I will use it.
(But that function is implemented in a really ugly way).
--
fenrir
More information about the vlc-devel
mailing list