Deployable-PHP-Codepad icon indicating copy to clipboard operation
Deployable-PHP-Codepad copied to clipboard

Shows rendered html instead of html code in result view

Open teo1978 opened this issue 13 years ago • 3 comments

Screenshot from 2013-01-08 00:03:58

The screenshot is self-explanatory.

You should see "

Hi

" where you see "Hi".

teo1978 avatar Jan 07 '13 23:01 teo1978

By the way I'm almost sure this is a recent regression

teo1978 avatar Jan 07 '13 23:01 teo1978

Pretty certain this is a by-design non-issue, if I understand what you are saying correctly - do you mean you are expecting to see <p>Hi</p> HTML source instead of the rendered version?

This is the way the reworked front end works. If you want to view the generated source code, view the source of the iframe, or place your output in a <pre> tag and pass it through htmlspecialchars().

Apologies if I misunderstood what you are saying.

DaveRandom avatar Jan 08 '13 23:01 DaveRandom

Ok, you understood perfectly. Yes, I expected to see the HTML source as it is the way it used to work in most codepad-like sites I've seen. But hey, the new design makes a lot of sense as long as it is all in an iframe so that one can view the iframe's source code in the browser. Cool.

Now a feature-request/suggestion would be to allow the user to switch between the two modes, so as to not depend on the browser's ability to show an iframe's source code (do all browser have that option?)

Sorry for the bogus bug report.

teo1978 avatar Jan 09 '13 00:01 teo1978