What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

I clicked to edit a comment in review on the prime stackoverflow website.

Original text I had planned to edit was not in a code block (as below for presentation purposes) and was similar to:

$content = '<h1>About You</h1> <h4>First Name:</h4> <p>'. $fname .'</p> <h4>Last Name:</h4> <p>'. $lname.'</p> <h4>>Age:</h4> <p>'. $age.'</p>'; 

The text that appeared in the textarea for edit purposes (still not in a code block) was similar to:

&#36;content = &#39;&#60;h1&#62;About You&#60;/h1&#62;
&#60;h4&#62;First Name:&#60;/h4&#62;
&#60;p&#62;&#39;. $fname .&#39;&#60;/p&#62;
&#60;h4&#62;Last Name:&#60;/h4&#62;
&#60;p&#62;&#39;. $lname.&#39;&#60;/p&#62;
&#60;h4&#62;>Age:&#60;/h4&#62;
&#60;p&#62;&#39;. $age.'&#60;/p&#62;&#39;;

There is apparently an HTML escaping issue here, or this is likely normal because the escaped code was either used originally or converted to escaped html for presentation purposes. Either way, it felt inconsistent.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

You're talking about this answer. The source actually does look like that -- the OP posted it raw originally, which obviously didn't work, so he edited it to manually escape all the tags, not realizing that there is a better way to format code

share|improve this answer
    
I guess that's why we review posts by new posters then, eh? Thanks. –  JoshDM Oct 25 '11 at 17:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .