How can I display HTML tags on an .html page without trying my browser to do everything the tag has.
.html
You must use the shielded version. For example, < becomes < (without quotes) and & becomes & .
<
<
&
&
You should be able to find a complete list of conversions.
Fragment example:
<a href="http://google.com">Google</a>
is a shielded version:
<a href="http://google.com">Google</a>
Edit:
Standard list of objects: http://www.w3.org/TR/html4/sgml/entities.html
Wikipedia artcile on it: http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references
You can use the php function " highlight_string(); " for example:
highlight_string();
<?php highlight_string('<?php phpinfo(); ?>'); ?>
It will output the input as a color-coded string.check out your php documentation: http://php.net/manual/en/function.highlight-string.php
The response to the insertion of tags into the body part can be passed through the <textarea> . Text or tags entered between the open and close <textarea> tags will be displayed as such.
<textarea>
Source: https://habr.com/ru/post/1387147/More articles:Replace word on page template with page title in php - phpUpdate LinqtoSql database with new schema changes? - c #How to generate new QColors that are different from each other - c ++How can I check if the network is listening? - c #Cannot call Clojure static clr method from C # application - c #Remove empty rows and columns in a table using jQuery - javascriptcustom url scheme for native app or website - iphoneBest expert-level ASP.NET MVC roadmap - asp.net-mvcJSON: the selected option does not work in IE, but works in firefox - jsonHow to emulate gps location in Android-x86 simulator (VirtualBox)? - androidAll Articles