splittingred / SimpleSearch

A simple search component for MODx Revolution
http://docs.modxcms.com/display/ADDON/SimpleSearch
36 stars 36 forks source link

tag with only a space causes the extracted text to contains ascii symbol 197 #73

Open u007 opened 11 years ago

u007 commented 11 years ago

public function createExtract($text, $length = 200,$search = '',$ellipsis = '...') { //$text = trim(preg_replace('/\s+/', ' ', $this->sanitize($text)));

Removing preg_replace seems to work, leaving only sanitize

u007 commented 11 years ago

example: [p] [/p] [td] [/td]

[p]a[/p] - this is okay