Prepare a block of text to display in php
I need to append the contents of a text file to a string in php line by line. awk and sed are very useful for such things. Here is the content of the file. It’s a fairly standard bit of bootstrap HTML. I need to replace all of the ” characters with ‘, then start each line with $string.=” and end each line with \n”; Cat divs.txt simply prints the content of the file. This is piped into the sed…