KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to convert Word text pasted by users that contain MS Word ellipsis and long dash before processing it further. I found an old proposed solution here to the problem http://www.codingforums.com/archive/index.php/t-47163.html , but it does not work for me. After replacing the ellipsis for example , the variable comes back as empty. Never seen anything like this before: $src = "Long word dash – and weird Word ellipsis…"; $src = str_replace("‘", "'", $src); $src = str_replace("’", "'", $src); $src = str_replace("”", '"', $src); $src = str_replace("“", '"', $src); $src = str_replace("–", "-", $src); $src = str_replace("…", "...", $src); print $src; Any ideas?
Tags (comma-separated)
Save Edits
Cancel