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

  • Home
  • SEARCH
  • 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 8881855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:25:58+00:00 2026-06-14T20:25:58+00:00

I have project with textview , and this object has some bold and regular

  • 0

I have project with textview, and this object has some bold and regular text.
I found on stack that to make something like that it’s nice to use Html.fromHtml().
However if someone got my application and will try invoke content showing in Html.fromHtml, it might be very risky..

I am writting to you with question: is it safe to use Html.fromHtml()? What should I use instead of? My project has only one textview and I musn’t add any more objects. I have layout and I must work only this one layout.

  • 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-14T20:26:00+00:00Added an answer on June 14, 2026 at 8:26 pm

    However if someone got my application and will try invoke content showing in Html.fromHtml, it might be very risky

    Why? Are you deathly allergic to italics? 🙂

    is it safe to use Html.fromHtml()?

    It is as safe as just about any other method in any other class in Android. You are welcome to inspect the source code for it, write your own replacement for it, etc. if you so choose.

    Penetration test

    What do you think a “penetration test” has to do with displaying simple HTML in a TextView?

    and invoking the content with any scripts

    TextView (and Html.fromHtml()) does not process JavaScript, or CSS, or <iframe>, or most HTML tags for that matter. It handles a few basic tags, and that’s it.

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

Sidebar

Related Questions

Ok so I have a layout which looks something like this: LinearLayout TextView LinearLayout
folks! I have project in cc.net and this project nay start by 3 ways
I have this SQLite containing a number of 'Projects'. Each 'Project' with its attributes
We have a bigger Android 2.1 project, and for some reason, only at two
In my project I have a ListView which has a touchListener in getView method
I know many people have had this problem and I have searched Google/Stack Overflow,
I have a project that ask me to build a currency converter, i already
I have an unusual project that I need to display large sets of questions
I have one superclass in my android project that inherits from activity and implements
I have a project that I am working on that requires me to be

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.