[ReDev] X- attribute treatment
Thomas Krichel
krichel at openlib.org
Wed Jul 6 11:37:07 UTC 2016
Sune Karlsson, on CitEc-run, wrote
> That was not a terribly good fix. Turns out that $attribute can be undefined so
>
> $value = decode_and_strip_html( $value ) unless defined $attribute and $attribute eq 'x-bibl';
>
> is better unless you want a lot of warnings about $attribute being undefined.
What abouot disabling stripping for all x-attributes
$value = decode_and_strip_html($value)
unless defined $attribute and lc(substr($attribute,0,2)) eq 'x-');
--
Cheers,
Thomas Krichel http://openlib.org/home/krichel
skype:thomaskrichel
More information about the ReDIF-dev
mailing list