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


  1. msfbiz
    Member

    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,
    Mike

    Posted 13 years ago #
  2. redityo

    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 13 years ago #

RSS feed for this topic

Reply