Now removing UTF-8 BOM at the start of the document, if present.

This commit is contained in:
Michel Fortin 2008-02-28 06:47:43 -05:00
parent bfca8fa34f
commit 4596f60a01

View file

@ -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