added support for inline character entities