Codewars: Field Chained HTML Formatting

This is a difficult Codewars problem.

There are two ways that most people solved it. They are hidden in the hints below.

Hint

There’s a discussion about the solutions in the private area here (log-in required). Give the problem a try first. :slight_smile: