Fix trim strip_tags issue as per #1385

as discussed in #1385