s

show html code in html edit button Edit

author
Murugan Andezuthu Dharmaratnam | calendar 04 September 2020 | 2741

when I write an article about HTML and CSS, I need to display HTML code on an HTML page. The solution is displayed below.

Solution


Replace the & character with &
Replace the < character with &lt;
Replace the > character with &gt;