htmlspecialchars()
functionCertain characters such as (&
, "
, '
, <
, >
) have special significance in HTML, and should be converted to HTML entities. You can use the PHP htmlspecialchars()
function to convert special characters in a string to HTML entities. Let's check out an example:
<?php
$my_str = "String with <b>special</b> characters.";
// Removing HTML special characters
echo htmlspecialchars($my_str);
?>
Hi, My name is Harsukh Makwana. i have been work with many programming language like php, python, javascript, node, react, anguler, etc.. since last 5 year. if you have any issue or want me hire then contact me on harsukh21@gmail.com
Login with Twitter in Angular9 using Firebase
I am going to show you how you can ...How to convert html to pdf laravel 5.4
Today laravelcode share with you how to...How to compare two array values in PHP
Use the PHP array_diff() funct...How to check whether a variable is null in PHP
Use the PHP is_null() function...Laravel 8 - CRUD application tutorial with Example
In this article, i will share with you h...