I have a file called proof.html like this one:
<title>{title}</title>
<link rel="stylesheet" type="text/css" href="{cssURL}" />
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
<meta name="apple-mobile-web-app-capable" content="yes" />
</head>
<body class="{language} {custom}">
<div class="FeedTitle">{feedTitle}<br /><span><em>via</em> RSS</span></div>
<div class="Published">{date}</div>
<div class="Title"><a href="{sourceURL}">{title}</a></div>
<div class="Author">{author}</div>
<div class="RSS">{text}</div>
<div class="Original"><a href="{sourceURL}"></a></div>
Later on I am loading it in my UIWebViev using the command below:
[doc loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"proof" ofType:@"html"]isDirectory:NO]]];
Now I can't understand how I can replace for example {author} with the real name of the autor of my news... How can I pass It to my UIWebView? Can someone share an example? Thanks.