@@ 17,7 17,7 @@
*standard-input*
(uiop:parse-native-namestring (second args))))))
-(defparameter *html-scanner* (cl-ppcre:create-scanner ">|<| |<[^>]*>"))
+(defparameter *html-scanner* (cl-ppcre:create-scanner ">|<| |&|<[^>]*>"))
(defparameter *mention-scanner* (cl-ppcre:create-scanner "(?:\\s*)?\\@\\w+(?:\\s*)?"))
(alexandria:define-constant +p-break+ (uiop:strcat markov::+lf+ markov::+lf+) :test #'string=)
@@ 33,6 33,7 @@
((string= ">" match) ">")
((string= "<" match) "<")
((string= " " match) " ")
+ ((string= "&" match) "&")
((or (string= "<br>" match)
(string= "</br>" match)
(string= "<br/>" match))