Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7980525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:06:04+00:00 2026-06-04T10:06:04+00:00

I have html string which i want to load in web view but i

  • 0

I have html string which i want to load in web view but i want that there are some values which i am getting as result so i want to add them also in this at run time like

I have a string belwo i want this value to be added with line
so that it should display Number of dogs that visit clinic ? 12 like this

 NSString*dogspermonth=12;

 Number of dogs that visit clinic? <br>


 NSString*htmlString=@"<HTML>
 <HEAD>
 <TITLE>JAMSHED ALI</TITLE>
 </HEAD>
<BODY background="InsideBackgroundPage2.png">
<H6><font color="white">Cerenia Motion Sickness<br>
Model</br>Report
<p>Inputs</p>
<br>
 Number of dogs that visit clinic? <br>
 Number of dogs with motion sickness <br>
 Dogs treated with (per year):      <br>

Cerenia <br>                                       
Other prescription drugs<br>
Other means<br>                            
Other the counter drugs<br>  
<p>
Average cost to client for Cerenia prescription<br>      
Clinic markup<br><br>


Average number of dogs treated for car sickness<br>
Total number of dogs treated for car sickness<br>
Dogs treated with Cerenia<br>
Dogs treated with other drugs or interventions<br>

<br>  
  Profit for each Cerenia prescription<br>
  Annual Profit earned from Cerenia treatment<br>
  Potential annual profit increase  from using Cerenia to treat all dogs with motion sickness<br>
 Maximum annual profit if all dogs with car sickness were treated with Cerenia<br>
</BODY>
 </head>";
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T10:06:06+00:00Added an answer on June 4, 2026 at 10:06 am

    first of all

    NSString*dogspermonth=12; //is wrong
    NSString *dogspermonth=@"12"; //is correct if u want string else
    NSInteger dogspermonth = 12; //will suffice
    

    next u can use stringWithFormat like:

    NSString *htmlString= [NSString stringWithFormat:@"<HTML>
     <HEAD>
     <TITLE>JAMSHED ALI</TITLE>
     </HEAD>
    <BODY background="InsideBackgroundPage2.png">
    <H6><font color="white">Cerenia Motion Sickness<br>
    Model</br>Report
    <p>Inputs</p>
    <br>
     Number of dogs that visit clinic? %@<br> //%@ if string //%d if integer
     Number of dogs with motion sickness <br>
     Dogs treated with (per year):      <br>
    
    Cerenia <br>                                       
    Other prescription drugs<br>
    Other means<br>                            
    Other the counter drugs<br>  
    <p>
    Average cost to client for Cerenia prescription<br>      
    Clinic markup<br><br>
    
    
    Average number of dogs treated for car sickness<br>
    Total number of dogs treated for car sickness<br>
    Dogs treated with Cerenia<br>
    Dogs treated with other drugs or interventions<br>
    
    <br>  
      Profit for each Cerenia prescription<br>
      Annual Profit earned from Cerenia treatment<br>
      Potential annual profit increase  from using Cerenia to treat all dogs with motion sickness<br>
     Maximum annual profit if all dogs with car sickness were treated with Cerenia<br>
    </BODY>
     </head>", dogspermonth];
    

    hope it helps. happy coding 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string which has html tags. I want to remove the html
I have some html pages which I want to display as an additional information
I have a string which holds a small amount of HTML generated content. I
I'm pretty new to PHP and have a String which contains an HTML page.
I have the following very simple regex, which matches HTML tags in a string.
I have a HTML string and want to replace all links to just a
I have the the following HTML string. <div id=mydiv> <pre> Some content several lines.
I have a pretty complex but well-formatted HTML string with lots of links in
Background: I have string of html with about 10 image tags that passes through
I have an html code stored in a string. Now I want to extract

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.