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

 

string_removeHTMLtags


Given a String containing HTML tags, remove the tags. For example, in HTML you add to indicate the start of bold text and to end the bolded text. HTML tags always use angle brackets '< >' for their starts and stops.


string_removeHTMLtags("<head>This defines the head of a page</head>") → "This defines the head of a page"
string_removeHTMLtags("<body>This defines the body of a page</body>") → "This defines the body of a page"
string_removeHTMLtags("<b>This text is bold!</b>") → "This text is bold!"

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

public String string_removeHTMLtags(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

Post-solution available

Copyright Nick Parlante 2017 - privacy