#265. HTML标签字符串生成

    ID: 265 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatString-1gesp1顺序结构

HTML标签字符串生成

HTML Tag Generation

Background

The web is built with HTML strings, such as "<i>Yay</i>", which renders "Yay" as italic text. In this example, the "i" tag creates <i> and </i>, which surround the word "Yay".

Problem Description

Given a tag string tag and a word string word, create an HTML string that wraps the word with the tags. For example, if tag is "i" and word is "Yay\