Search code examples
Remove the non-numeric prefix from array elements before using array in a database query's IN() ...

phpmysqlarraysprefixsanitization

Read More
Remove non-<img> tags from string...

phphtmlregexsanitizationstrip-tags

Read More
Remove excess newlines/whitespace from multi-line <img> tag in HTML string...

phpregeximagemultilinesanitization

Read More
Get sequences of numeric values which have a distinctive starting format as a sanitized array of del...

phpregexpreg-matchtext-extractionsanitization

Read More
Eliminate meaningless words from a block of text...

phpregexpreg-replacesanitization

Read More
Remove duplicated words from a space delimited string...

phpregexduplicatescpu-wordsanitization

Read More
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
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
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
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
BackNext