abhibeckert/Dux — Issue #34: Ignore ampersands where there isn't any entity
Author: abhibeckert
Created: 2011-11-27 21:59:39+00:00
State: open

If the HTML encoder encounters an ampersand character which is not a HTML entity, it should be ignored.

Some examples of ampersands which should not appear as an entity:

Foo & bar
{if isset($dates) && $dates}

Update DuxHTMLEntityElement to return a length of 0 characters if it's invalid.