PHP HTML output escape करने के लिए common function क्या है? में error आए तो solution क्या है?

Other Published Updated 0 Views Verified
PHP HTML output escape करने के लिए common function क्या है? में error आए तो solution क्या है? सही विकल्प चुनें और code/solution को समझें।
Looking for the latest Sarkari Result 2026 updates? Check the latest government exam results, merit lists and result updates on Sarkari Resultess.
Sarkari Resultess
Questions & Answers

Answer & Explanation

4 Answers
Verified

escape_html_manual($value);

escape_html_manual($value);
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Sarkari Resultess
Editorial Answer 1
Verified Correct Answer

htmlspecialchars($value, ENT_QUOTES, 'UTF-8');

htmlspecialchars($value, ENT_QUOTES, 'UTF-8');
Additional Explanation
htmlspecialchars() HTML special characters encode करता है। पहले exact error message, line number और input value check करें।
Sarkari Resultess
Editorial Answer 2
Verified

strip_tags($value);

strip_tags($value);
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Sarkari Resultess
Editorial Answer 3
Verified

html_escape_only($value);

html_escape_only($value);
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Sarkari Resultess
Editorial Answer 4