0

the problem is i want to output "<h1>heading</h1>" without skipping the heading tags....

<!DOCTYPE html>
   <html>
       <head>
         <meta charset="utf-8" />
           <title>first page</title>
       </head>
          <body>
            <h1>Heading</h1>
         </body>
  </html>
Nad
  • 4,605
  • 11
  • 71
  • 160
Sharan Sondhi
  • 87
  • 1
  • 11

2 Answers2

2

If I understand your question right, you want

&lt;h1&gt;Heading&lt;/h1&gt;

This will print:

<h1>Heading</h1>

Ishamael
  • 12,583
  • 4
  • 34
  • 52
0

in php, you can do this print htmlspecialchars('<your tags/>') failure to which, you need to know the character code of the tag.

Patrick Mutwiri
  • 1,301
  • 1
  • 12
  • 23