Is there a option to forestall person from getting into <img src=x onerror=alert(take a look at)>
script tag to the shape?
My present search web page is utilizing ajax to load search outcome upon getting into on the enter subject. I’ve look into sanitize perform however nonetheless not in a position to resolve.
I’ve additionally put in the plugin: Stop XSS Vulnerability
Right here is the shape:
<kind motion="#" id="general-search" autocomplete="off" class="mx-auto">
<div class="d-md-inline-block d-block position-relative ml-auto mr-md-3 mb-md-0 mb-2 mr-md-0 mr-auto input-wrap"><enter kind="hidden" identify="tag" worth="<?php echo $tag;?>" />
<enter kind="text" identify="search_keyword" placeholder="Search here..." worth="<?php echo $keyword;?>"/><span id="clear-search"><img src="<?php echo theme_url_images;?>cancel-gray.png" /></span></div><a href="#" class="btn btn-medium btn-red mx-md-0 mx-auto d-md-inline-block d-block ajax-search mt-md-0 mt-4">Submit (take a look at)</a>
</kind>
Thanks.