Fix clickable links which end in punctuation
Fix mailto: links to not route through l.php
i18n: Remove unused, possibly incorrect formatting

These functions don't appear to be used an could corrupt UTF-8 encoded text
htmLawed: Fix corruption to UTF8 encoded text

On some combinations of operating systems, PHP and libpcre versions, `\s`
will match the iso-8859-x non-breaking-space, 0xa0. This regular expression
will munge the UTF8 encoded version, 0xc2a0 to 0xc220, which is not a valid
UTF8 character.

When inserted into a UTF8 field in mysql, the text will be truncated at and
after the first invalid character.
html: PHP DomDocument classes are in the `dom` ext
Ensure images, when initially dropped, have a width
html2text: Drop border around <pre> elements

Until we add text/plain bodies to the ticket thread without an enclosing
<pre> element, we should not treat the <pre> element like a code or
blockquote block.
Prepend `http://` to links starting with `www.`
Merge pull request #497 from greezybacon/issue/link-ending-punct

Fix a few link issues in the ticket thread

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #502 from greezybacon/issue/unicode-space-mangling

Fixup Unicode whitespace mangling

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #503 from greezybacon/issue/require-dom-extension

html: PHP DomDocument classes are in the `dom` ext

Reviewed-By: Peter Rotich <peter@osticket.com>
Merge pull request #504 from greezybacon/issue/images-width-0

Ensure images, when initially placed, have a width

Reviewed-By: Peter Rotich <peter@osticket.com>
Create ThreadBody class to keep track of text type

This will be helpful to keep track of whether a text is html or text and
provide a way to convert it exactly once.
Add ability to trip tags on-request
Cleanup and make HTML safe by default
Strip empty lines in TEXT content
Decide the thread body type at email parsing time.

This would in theory allow us to decide at the email level the content type
to accept.
Fix fixup routines for JSON/XML parsers to use the new ticket thread body
model.
Remove quoted response removal - it's now handled at the email parsing
level.
Handle cases where thready body is sent in as a string

We're going to assume HTML of html thread is enabled - otherwise text is
assumed.
Assume system generated internal notes are HTML when not specified
Add support for * input type to Validator

This is required when validating a message which could be a string or an
object.
Fix JSON parsing