I have to decode a HTML string, but the response is not coming well. This is my URL from where I have to decode my HTML string: http://www.delvetech.org/sharpkirana/sharpapi/aboutApi.php
.
My code is given below:
NSString *HTML = [NSString stringWithFormat:@"<html>\n"
"<head>\n"
"<style type=\"text/css\">\n"
"body {font-family: \"%@\"; font-size: %@; color:#%@;}\n"
"</style>\n"
"</head>\n"
"<body>%@</body>\n"
"</html>",
font.familyName, @(font.pointSize), colorHexString, htmlBodyString];
return HTML;
Is there a problem in my code or are the HTML strings wrong?