Last active
November 27, 2018 08:52
-
-
Save fl3pp/fb8e46369ab88907020fbd143fa2b8b5 to your computer and use it in GitHub Desktop.
Plugin to support BOMs in Pico
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Create file 'PicoBom.php' in pico plugin folder and paste contents | |
class PicoBom extends AbstractPicoPlugin { | |
public function onContentLoaded(&$content) { | |
if (substr($content, 0, 3) == "\xEF\xBB\xBF") | |
$content = str_replace("\xEF\xBB\xBF",'',$content); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment