Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. $string = str_replace(
  2. [' ', '<', '>', '\'', '"', '&', '!', '$'],
  3. [
  4. '&nbsp;',
  5. '&lt;',
  6. '&gt;',
  7. '&#39;',
  8. '&quot;',
  9. '&amp;',
  10. '&#33;',
  11. '&#036;'
  12. ], $string);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement