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

Link to comment
Share on other sites

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.

Link to comment
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.