OmniFoundation and HTML Entities

Tuesday, June 3rd, 2003 @ 12:51 am | Programming

I’m posting this mostly so I’ll remember it in the morning and beyond, but the OmniFoundation framework contains an category for NSString called htmlString. This category mostly generates HTML entities for high ASCII characters. It also handles ", &lt, and > and converts newline characters to <br/> tags.

I’ve been looking for something like this for a few days now and it didn’t occur to me to check the Omni source code until a few minutes ago.

Depending on how I use this, I may disable or modify the handling of quotes since I prefer the smart quotation generated by SmartyPants and the like.

Comments are closed.