Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to display HTML source code on a page in PHP?

Tags: code html

To display Html source Code you can use “htmlspecialchars” php function.

For example if we want to display img source code page
“, ENT_QUOTES);
echo $new;
?>

php functions

The post How to display HTML source code on a page in PHP? appeared first on PHPCORELAB.



This post first appeared on Quick Reference For PHP, please read the originial post: here

Share the post

How to display HTML source code on a page in PHP?

×

Subscribe to Quick Reference For Php

Get updates delivered right to your inbox!

Thank you for your subscription

×