Avoid replacing escaped tags from PHP functions