dainius.kaupaitis
Forum Replies Created
-
Forum: Plugins
In reply to: [DKA Child pages widget] DKA Child Pages, Remove BulletsThe widget does not have its own style. It depends on your themes CSS.
Yes. Thank you!
Also you delete a lot of potential characters by
$message = preg_replace('|&[^a][^m][^p].{0,3};|', '', $message);
Why not to decode them back usinghtml_entity_decode()
?
This could be safe, because here we talk about converting from HTML to plain-text mail.I think instead of doing:
$message = preg_replace('|&[^a][^m][^p].{0,3};|', '', $message); $message = preg_replace('|&|', '&', $message);
it would be better to do:
$message = html_entity_decode( $message, ENT_NOQUOTES, 'UTF-8' );
BTW this also will fix
Š
problems ??Lithuanian (and some others) alphabet has such ?abnormal“ characters: ???????ū?. Every character present in utf8. And only ? letter causes ?problems“ in some WYSIWYG editors – it is converted to HTML entity.
I fixed this problem at you plugin code by adding line atclass-s2-core.php:252
:
$message = str_replace( array('š','Š'), array('?','?'), $message);
But still not tested.
I know, I will loose this on next plugin update. So it would be kind if you add this fix in your future update (maybe another – more ?correct“ place in code).
As I mentioned, this problem appears to many users, because this character is ?popular“ not only in one language.