Skip to navigation

Question:
How to convert new line character /n to br with ruby?

Use simple algorithms as well as simple data structures.