gshaviv/DTCoreText — comment on commit 6e8ae6cd34b67a2a72f906508b0cd7b59fb176fa
File:  line 0
By Cocoanetics:

I've been meaning to tell you that there is a flow in doing this. With libxml you are not getting the entire block contained in a tag, but only until the next entity or max 1000 characters.

I think it might improve performance to always output an attributed string for an entire block (like the entire p) and possible construct it in a way that you can add the hyphenation wothout having to change the classes. Possibly with letting you pass a block or subclass the steing builder.