
#import "FormattedTextContainer.h"

@implementation FormattedTextContainer

- (void)setHtmlValue:(NSString *)htmlValue {
	
	self.opaque = NO;
	if ([htmlValue length] == 0) {
		htmlValue = @"&nbsp;";
	}
	NSString * htmlWithCSS = [@"<style>body { background-color: transparent; font: 13px -webkit-system-font; margin: 0; }</style>" stringByAppendingString:htmlValue];
	
	[self loadHTMLString:htmlWithCSS baseURL:nil];
	
}

@end
