• Resolved eivic

    (@eivic)


    Hello,

    I just wanted to start by thanking you for such an easy to use, diverse plugin.

    After testing out a few exports I noticed HTML outputting to a few fields, in the form of <span>’s. I found the following PHP to solve this issue:

    add_filter( "woe_csv_output_filter", function($row, $formatter){
        return array_map( "strip_tags", $row ); 
    },10,2);

    This did remove the HTML but certain fields are still not displaying properly and instead are showing a range of symbols.

    As an example my User Height field is outputting result as: 5a€22a€3
    and my size field is outputting a result as: S £0

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author algol.plus

    (@algolplus)

    try this version

    add_filter( "woe_csv_output_filter", function($row, $formatter){
        return  array_map( "remove_accents", array_map( "strip_tags", $row ) ); 
    },10,2);
    Thread Starter eivic

    (@eivic)

    The User Height and Size fields are still returning as symbols

    Thread Starter eivic

    (@eivic)

    According to a colleague, that change has resolved the User Height field (I must have something cached), however the Size field is still returning as S &pound;0

    • This reply was modified 3 years, 6 months ago by eivic.
    • This reply was modified 3 years, 6 months ago by eivic.
    Plugin Author algol.plus

    (@algolplus)

    updated version

    add_filter( "woe_csv_output_filter", function($row, $formatter){
        return  array_map( "remove_accents", array_map( "html_entity_decode", array_map( "strip_tags", $row ) ) ); 
    },10,2);

    if it won’t work — I suggest to hire programmer.
    I’m sorry, I have a lot of tickets daily

    • This reply was modified 3 years, 6 months ago by algol.plus.
    Thread Starter eivic

    (@eivic)

    This worked perfectly, thank you so much for your time!

    Plugin Author algol.plus

    (@algolplus)

    You’re very welcome

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fields containing HTML and other symbols’ is closed to new replies.