[cfe-commits] [PATCH] Comment parsing: resolve HTML character references (e.g., & -> &)

Dmitri Gribenko gribozavr at gmail.com
Wed Jul 25 14:54:04 PDT 2012


On Wed, Jul 25, 2012 at 2:51 PM, Jordan Rose <jordan_rose at apple.com> wrote:
> This seems like a very bad idea when I have this in a comment:
>
> <em>0<i</em>
>
> If you expand the '<', you end up with invalid HTML. Entities are
> supposed to be entities when they come out the other end.

'<' will be expanded in the internal representation.  HTML renderer
will escape HTML special characters back.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list