Raw text to formatted text html

I have raw text something like

"Compute - [https://google.com]\r\n\r\n \r\n\r\nadfdf kljadf.\r\n\r\nFails before initial provisioning in u-boot with serial output containing:\r\n{code:java}\r\nSignal detected at module.\r\nocteth0: Down (port 2048) (XLAUI)\r\nBOOTP broadcast 2\r\nBOOTP broadcast 3\r\nBOOTP broadcast 4\r\nBOOTP broadcast 5\r\n\r\n\r\nRetry count exceeded; starting again\r\nBOOTP broadcast 1\r\nBOOTP broadcast 2\r\nBOOTP broadcast 3\r\nBOOTP broadcast 4\r\nBOOTP broadcast 5\r\n\r\n\r\n{code}\r\n * If not illuminated, re-seat the cable at both ends\r\n * If still not illuminated, replace the cable (after arranging downtime)\r\n\r\n " 

I want to show in html with formatted as url should be hyperlink and code should be formated as pre or code block.. is there any library or any hack?

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.