<?php $string = 'HDO Intranet — Futar.png'; $encoded = htmlentities($string); $result = $encoded; $result = preg_replace('/[^a-zA-Z\d\s-_\.]/', '', $result); echo $encoded;
You have javascript disabled. You will not be able to edit any code.