Cocoanetics / DTCoreText

Methods to allow using HTML code with CoreText
BSD 2-Clause "Simplified" License
6.34k stars 1.18k forks source link

app is not able to handle data (base64) images in the <img> html tag #40

Closed ghost closed 13 years ago

ghost commented 13 years ago

App currently does not handle non-url images in the html tag as it crashes. Would like it to handle data images.

Image Handling

Some basic image handling has been implemented

Inline

Block

There is a known issue with images as blocks, outside of p tags.

An Image outside of P is treated as a paragraph

The previous image has float style. As a Workaround a newline is added after it until we can support floating in the layouting.

Supported Attributes

Supported Image Formats

According to Apple the following image formats are supported for use with UIImage:

odrobnik commented 13 years ago

The sample is incomplete it's missing the closing of the tag. Please add that. (Or if GitHub prevents you from doing that please e-mail it to me)

ghost commented 13 years ago

Updated it but the web-page is interpreting the contents of my text.

On 23 Jun 2011, at 16:14, Cocoanetics wrote:

The sample is incomplete it's missing the closing of the tag. Please add that.

Reply to this email directly or view it on GitHub: https://github.com/Cocoanetics/NSAttributedString-Additions-for-HTML/issues/40#issuecomment-1424435

odrobnik commented 13 years ago

Implemented: https://github.com/Cocoanetics/NSAttributedString-Additions-for-HTML/commit/9c7d525d112de579fc88421ba3414a52c8f3e421