ProgrammingFundamentals

HTML Block Parser

Description

Given an HTML String like:

<p>The <b>quick</b> brown <i> fox </i> jumped over the lazy dog.</p>

Write a method that takes the given input String & the maximum number of characters that will be used to generate a valid HTML output string (with tags closed as appropriate).

Notes

Example

Analysis

Solution