Flash, HTML, and the Non-breaking Space.

My project manager discovered an interesting issue while I was gone. We are currently working on a project now for a site that uses a Flash application to browse content. The Flash SWF calls a CFC to get the content. The back end is our ColdFusion based CMS Element, which uses a rich text editor. The client was instructed that Flash does not understand all HTML tags, so they needed to keep things simple. That worked fine until the PM noticed something odd. Some sentences were running together. As an example:

Bush is a monkey.No, monkeys have more brains.

Turns out - the content was being pased in from another source like so:

Bush is a monkey. No, monkeys have more brains.

And Flash was ignoring the non-breaking space. Luckily enough it was easy enough to fix. I just added a method to my CFC to change the html entity to a normal space, which Flash respected.

As a related issue - the rich text editor was using liked to use the STRONG tag instead of B. Flash wants B, not STRONG. Luckily, the same method easily fixed that as well.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Comments