I have created HTML code that creates a layout for information that my iPhone app gathers from the user. I would like to be able to take the html string and place the right values in the right location, but cannot think of a good way to accomplish this.
Example.
<html>
<body>Name:</body>
</html>
And I am wanting to put “Eric” after “Name:”.
Because my html file is much larger than this I am just trying to think of the most efficient way to basically add NSStrings into my long html NSString…
Thanks,
Eric
You can do:
NSString *html = [NSString stringWithFormat:@"<html><body>Name: %@</body></html>", @"Eric"];