Re: cvs: docweb /include docweb_language.class.php /scripts gen_picture_info_all_lang.php /www revcheck.php
| From: | Vincent Gevers | Date: | Sun, 31 Oct 2004 16:05:40 +0000 |
| Subject: | Re: cvs: docweb /include docweb_language.class.php /scripts gen_picture_info_all_lang.php /www revcheck.php | ||
| References: | 1 2 3 | Groups: | php.doc.web |
| Request: | Send a blank email to doc-web+get-388@lists.php.net to get a copy of this message | ||
On Sunday 31 October 2004 12:18, Gabor Hojtsy wrote:
> >>So, that works for me. Is that the proper way to escape entities? My
> >>parser is a regex, and doesn't necessarily follow XML's official rules.
> >>
> >>The other option, here, is ' -> ' and " -> "
> >>
> >>Again, I'm ok with either one.
> >
> > I'm not really into the phpdoc entities..
> >
> > I wonder how the doc people solve this problem.
> > IMO we should make it so that they can use there way for quotes
> > making it simple without confusion
> >
> > in phpdoc-fr I for this:
> > Configuration à l'exécution
> > in phpdoc/en I found a $apos;
> >
> > I think we should parse the ' and '
> > because those seeem to be used by the doc teams.
> >
> > please correct me if I'm wrong about something..
> > I'm not really into the docs and quoting
>
> We use \" \' and sometimes ' and ", so if you are about to
> support any case, then there is more to take into account :) These are
> all valid entity values...
The ' stuff works fine....
but this has raised another question:
html inside entities.
allowing html is good for the ' stuff, but it could be really bad for
people who want to put examples in an entity or make typos in html code which
can make everything look ugly. e.g. a table
I'm kinda for using a safe_display() which will htmentities and stripslashes
everything but leaving the quoting.
Vincent
> Goba
>