Jump to content

Entities

Featured Replies

Posted

I think HTML entities should not be parsed within code boxes. If we're posting HTML source code, how are we suppose to demonstrate entities?

In the below I am going to type the HTML entity for the letter A;

A


A



I'm not sure quite if this would work, but surely this would do it:

$text = preg_replace("&","&",$text);



?

If we did a mass preg_replace on entities, it would destroy all formatted content. I do see what you are saying though.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.