Jump to content

Possible to Remove HTML tags?


The14thGOD

Recommended Posts

Hey,

 

Basically what I am doing is making a blog of mine on my website AJAXable (and I copyright that word!). So I have it when I'm logged in all the script is enabled and I can edit the blog. Now when I click on the text it generates all the info in a textarea. However! I see my html tags. Now I'm pretty sure once I click on the submit button, it is going to store all those tags into the database. I do not want that ^_^

 

Is there a way with PHP or maybe Javascript to go through and delete these tags?

 

Thanks in advance,

 

The14thGOD

Link to comment
https://forums.phpfreaks.com/topic/41097-possible-to-remove-html-tags/
Share on other sites

I will try this as soon as I can figure out something ^_^. I'm new to javascript so this is kinda confusing for me.

I had an error, I misnamed the field in one area. When it was misnamed it went to the php script and ran it, when I put it back to what it was supposed to, the page did not refresh, and I don't think the query ran because in my db nothing changed.

 

But thank you for the info, :D

 

The14thGOD

 

***EDIT***

Happen to know if there is a way through javascript to run a php script? i think that would be eaiser than the way I am doing.

Thanks again for any help.

Thanks for reminding me of what I already knew.

 

I was more looking for a function, code, or a link to a tutorial or something like that. I've been googling and havn't found a method that would work with the way I'm doing it. I don't want the page to refresh, but the methods I keep finding would require the page to refresh.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.