Jump to content

Recommended Posts

I have a text document which i use php to strip data from

 

One stage it strips someones name, however, there name contains a hidden character and after further investigation ive found it to be the html eqivelent of

 

%0D

 

Which is apparently a line feed

 

How can I use PHP to strip it out. Please note that its not actually displayed as THERENAME%0D

 

But I know its there

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/49202-solved-html-char-0d/
Share on other sites

Because it doesnt show up as %0D in notepad or when echoing it

 

I only found it out when it was displayed in the browser and I noticed that char appearing at the end

 

Its like an invisible character anywhere else apart from in an address bar

 

Or if its in notepad it will just insert a new line. I suppose its like \n

 

How the hell can i get rid ofr this its driving me crazy

 

 

Link to comment
https://forums.phpfreaks.com/topic/49202-solved-html-char-0d/#findComment-241142
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.