Search code examples
Remove hash symbols from string (str_replace() doesn't modify by reference)...


phpstringreplacesanitization

Read More
Sanitize/Slugify a string by replacing non-alphanumeric and non-hyphen characters...


phpstringreplacesanitizationslugify

Read More
Remove all hash symbols in a string...


phpreplacestring-literalssanitization

Read More
Removing two blacklisted characters from a string...


phpreplacestring-literalssanitization

Read More
Replace one or more word characters with an underscore...


phpregexreplacesanitizationsnakecasing

Read More
Get all float numbers following an @ symbol...


phpregexpreg-replacesanitizationtextmatching

Read More
Replace a blacklisted word even if it has extra characters between matching characters...


phpregexpreg-replacesanitizationblacklist

Read More
Remove div element with specific class from HTML document...


phphtml-parsingsanitizationremovechild

Read More
Remove any tag attributes from all closing tags found in a poorly written XML string...


phpregexxmlpreg-replacesanitization

Read More
Remove parent <p> tag if its only child is an <img> tag...


phpregexwordpresshtml-parsingsanitization

Read More
Change from preg_match() to preg_replace() and to remove matched <head> content...


phpregexreplacesanitization

Read More
Get value of a particular key in the query string of an <a> tag's href value...


phpregexhrefurl-parameterssanitization

Read More
Remove non-letters and letters not preceded by specified characters or at the start of the string...


phpregexreplacesanitization

Read More
Filtering a delimited string of phone numbers...


phpregexphone-numbersanitization

Read More
Keep only one instance of a specified character consecutively repeated...


phpregexrepeatsanitization

Read More
Remove language-specifier from URL path string...


phpregexurlsanitization

Read More
Remove letters and spaces which immediately follow the first two letters in a string...


phpregexreplacesanitization

Read More
ORM OR middleware sanitization level?...


nestjstypeormmiddlewarexsssanitization

Read More
Sanitizing user input before adding it to the DOM in Javascript...


javascriptescapingxsssanitization

Read More
When is it best to sanitize user input?...


xsssql-injectionuser-inputsanitization

Read More
Truncate string at second occurrence of a character...


phpstringsanitizationtruncation

Read More
Constant FILTER_SANITIZE_STRING is deprecated...


phpfiltersanitizationphp-8.1

Read More
When sanitize/encode while implementing tags system like on SO...


securityencodingfetch-apirazor-pagessanitization

Read More
Convert string into slug with single-hyphen delimiters only...


phpregexpreg-replaceslugsanitization

Read More
Why doesn't preventDefault() of an input event stop changes to the value of a form element...


javascriptevent-handlingtextinputsanitizationpreventdefault

Read More
Remove everything before the dash from a Laravel array...


phparraysreplacesanitization

Read More
How do I convert a string into safe SQL String?...


.netsqlsanitization

Read More
Do i need to sanitize input if using prepared PHP/MySQL queries?...


phpmysqliprepared-statementsanitization

Read More
How to save data in database safe in laravel 5.1?...


phpsecuritylaravel-5sanitization

Read More
Strange characters in (invalid) json string from post request (encoding issues)...


phpjsoncharacter-encodingsanitization

Read More
BackNext