Add-on Simple addon

frm

Well-known member
I need the function getFormattedValue($value) in src/XF/CustomField/Definition.php

To change this section:
PHP:
        if (is_array($value))
        {
            $value = implode(\XF::language()->comma_separator, $value);
        }

To remain the same if no HTML is found in any of the array values (plain text with the exception of special characters, so I'm thinking a PHP function of strip_tags() needs to be employed.

If HTML is found, specifically <i* for finding Font Awesome only), the code needs to be this:

PHP:
        if (is_array($value))
        {
            $value = implode(" ", $value);
        }

Quotes in the inbox, please. :)
 
Top Bottom