id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

byngcompsci@gmail.com Strings > removeHTML
prev  |  next  |  chance

removeHTML(String str) - strips off the tags from a line of html. For example, the line:

<center>Starcraft</center>            -->  Starcraft
<a href="www.google.com">Google</a>   -->  Google
<marque>LOLOLOL</marque>              -->  LOLOLOL

removeHTML("<b>this is bold</b>") → "this is bold"
removeHTML("<a href=\"www.google.com\">Google</a>") → "Google"
removeHTML("<marque>LOLOLOL</marque>") → "LOLOLOL"

...Save, Compile, Run (ctrl-enter)

public String removeHTML(String str) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Copyright Nick Parlante 2017 - privacy