Now removing UTF-8 BOM at the start of the document, if present.
This commit is contained in:
parent
bfca8fa34f
commit
4596f60a01
1 changed files with 3 additions and 0 deletions
|
|
@ -254,6 +254,9 @@ class Markdown_Parser {
|
|||
$this->urls = array();
|
||||
$this->titles = array();
|
||||
$this->html_hashes = array();
|
||||
|
||||
# Remove UTF-8 BOM, if present.
|
||||
$text = preg_replace('{^\xEF\xBB\xBF}', '', $text);
|
||||
|
||||
# Standardize line endings:
|
||||
# DOS to Unix and Mac to Unix
|
||||
|
|
|
|||
Loading…
Reference in a new issue