title: Design Pattern for generating HTML Tags
body: <p>For a small system that can get a String and output an HTML, what design pattern would be suitable? </p>
  
  <p>This is a small example:</p>
  
  <pre><code>public String makeStrong(String in) {
  
      return "&lt;strong&gt;" + in + "&lt;/strong&gt;";
  }
  </code></pre>
  
  <p>Of course it needs to model some hierarchical structure so that it can fit <code>&lt;ul&gt;</code> and <code>&lt;ol&gt;</code> and their children. I'm thinking of <strong>Decorator</strong> but <strong>Composite</strong> pattern sounds good too. What should I consider?  </p>