I would like to echo HTML code and not execute it, how can i do that.

Example : echo('<br>') would not print a line but "<br>" on the screen.

    ever heard of the codes like &gt; and &lt;? try this:

    echo('&lt;br&gt;');

    lt = less than
    gt = greater than

      Intimidat0r wrote:

      ever heard of the codes like &gt; and &lt;? try this:

      echo('&lt;br&gt;');

      lt = less than
      gt = greater than

      FYI - That's what htmlentities() does for you automatically.

      🙂

        Thank you guys, i thought that htmlentities was doing something else 😛

        It work now 🙂

          Good. Don't forget to mark the topic as resolved.

          Happy coding.

          🙂

            Write a Reply...