0

I am loading a string into UIwebview. The string is a simple text coming from Database. What I want is that webview should show the text in Bold. How to add HTML <b> tag or any tag to this simple text coming from Database ?

1 Answer 1

1

If you just want to wrap the whole string in <b></b>, you can do it like this:

NSString *wrappedString = [NSString stringWithFormat:@"<b>%@</b>", stringFromDatabase];
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.