4 ms·
That's actually really close to what I want to do... I just need to learn how to parse correctly and replace. I have 4 basic page layouts, but only 2 that I re
by Random_Person 15y ago
That's actually really close to what I want to do... I just need to learn how to parse correctly and replace.
I have 4 basic page layouts, but only 2 that I regularly generate content for. The header, footer, nav bar, sidebars, and major layout DIV's on these pages are all constant. I'd like to be able to take a text document of paragraphs and run it through the parser that would apply <p>'s to the paragraphs and format the image links properly based on some sort of predefined replacement markup.
This is where I fall down. I need to figure out how to parse and I'm not finding any links to learn. I can read lines and stick open and close <p>'s on newlines, but the parsing of stuff inline is where I'm stuck.