0

Hi everyone,

I have tried finding out how to do this everywhere but I am coming up completely blank.

I have content coming into my site that I have no control over and it has this symbol • embedded in it. I really want to remove it and I can't see how.

Can anyone shed any light on it please?

Thanks in advance!

Ricahrd

3
Contributors
7
Replies
8
Views
8 Years
Discussion Span
Last Post by leviathan185
0

Hi pritaeas,

No I'm not using any lists. Basically I am wrapping content coming in from a CURL request in <p> tags and the • symbol is in the content.

I can't find a way to strip it with str_replace etc. Quite annoying.

1

try using str_replace

<?php
$source = "string with • ";
$newString = str_replace("•", "", $source);

that should work

Votes + Comments
Made me remember about trying the basics first!
0

If it is in the content, then there should be a way to delete it. Do you have a link to the offending page ?

0

OK I have to admit to being stupid on this one.

@leviathan185 while I was reading your comment it occurred to me that I was trying string replace while messing around with htmlentities as well. I hadn't actually tried str_replace simply using the character. I know stupid. And guess what. It worked.

Sorry for the oversight guys, thanks to everyone who posted.


Richard

0

OK I have to admit to being stupid on this one.

@leviathan185 while I was reading your comment it occurred to me that I was trying string replace while messing around with htmlentities as well. I hadn't actually tried str_replace simply using the character. I know stupid. And guess what. It worked.

Sorry for the oversight guys, thanks to everyone who posted.


Richard

it happens to us all, I have done it a few times myself :P Glad I was a help :-)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.