0

How could I

print();

the '<' and '>' signs? You can't escape character them ('\')


Say, for example, I wanted to Print();

"The <font> tag is awesome"

It would print out:

"The tag is awesome"

Thanks,
Mitch

Edited by mitch9654: n/a

4
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by mitch9654
0

Put your output in a string.

$test='The <font> tag is awesome';
print $test;

That didn't help...

And, what is the HTMLEntities funtion?

Edited by mitch9654: n/a

1

Try this :

<?php
$new = htmlspecialchars("'The <font> tag is awesome'", ENT_QUOTES);
echo $new; 
?>
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.