} elseif($cruuent_url_slug == 'php-oops'){ ?> } elseif($cruuent_url_slug == 'javascript'){ ?> } elseif($cruuent_url_slug == 'jquery'){ ?> } elseif($cruuent_url_slug == 'ajax'){ ?> } elseif($cruuent_url_slug == 'codeigniter'){ ?> } elseif($cruuent_url_slug_core == 'laravel'){ ?> } elseif($cruuent_url_slug_core == 'mysql'){ ?> } elseif($cruuent_url_slug == 'node.js'){ ?>
Convert the predefined characters "<" (less than) and ">" (greater than) to HTML entities:
The htmlspecialchars() function converts some predefined characters to HTML entities.
The predefined characters are:
Tip: To convert special HTML entities back to characters, use the htmlspecialchars_decode() function.
In the above program, we have input string which includes single quotes and less than and greater than symbols which can be parse by the browser. So, before applying these input into htmlentities() function, if we print it to the browser, then, the browser will parse the html tags, <i></i>, and there by displays the string htmlentities() with italic font.
Trending Tutorials