This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
How to remove <img> tags from entries
Started 14 years ago by msfbiz | 2 posts |
-
I'm using both text & images for some radio buttons, e.g. by putting in the choices field:
Credit Card <img src="imgages/visa-mc.png" alt="Credit Card" />
It works fine on the form, however when I export the entries, I get the full value:
"Credit Card <img src="imgages/visa-mc.png" alt="Credit Card" />"
for the column.
Is there a way to get only the label text (i.e. "Credit Card") without the HTML tags stored in the Entry DB?
Thanks for your help,
MikePosted 14 years ago # -
You can edit "export_enties.php" file for this. Go to line 376 for this code :
$data = str_replace("\r","",$data);
Then add this code exactly bellow that line
$data = strip_tags($data);
That would remove all HTML tag when you export the data
MachForm Support
Posted 14 years ago #
Reply
You must log in to post.