Skip to navigation

Question:
How to convert newline character to a break tag in ruby?

Use simple algorithms as well as simple data structures.