mr.mc.mauser Posted March 16, 2017 Share Posted March 16, 2017 Hello, I have a Littele Problem with Parsedown. here my code: $ersetzer = array( "turniername" => $datenseite->headline, "name" => $input->name, "vorname" => $input->vorname, "mailadresse" => $input->mail, "bklasse" => getlisttext($datenseite->turn_bklassen, $input->bklasse), "aklasse" => getlisttext($datenseite->turn_aklassen, $input->aklasse), "gender" => getlisttext($datenseite->turn_gender, $input->gender), "meldung" => getlisttext($datenseite->turn_meldung, $input->meldung), "camp" => getlisttext($datenseite->turn_camp, $input->camp), "grill" => $grillname, ); $betreff = wirePopulateStringTags($datenseite->getUnformatted("mail_an_betreff"), $ersetzer); $plaintext = wirePopulateStringTags($datenseite->getUnformatted("mail_an_text"), $ersetzer); $htmltext = wirePopulateStringTags($datenseite->mail_an_text, $ersetzer); The Plain text works perfekt, But the htmltext have no <br /> what must i do to become the <br />instead of \n Sorry for my Bad English Greetings Robert Link to comment Share on other sites More sharing options...
abdus Posted March 16, 2017 Share Posted March 16, 2017 When using Markdown, you can put two spaces before a line break to insert a soft break. first line␣␣ (two spaces before line break) second line // this would render as <p>first line<br/>second line</p> 1 Link to comment Share on other sites More sharing options...
mr.mc.mauser Posted March 17, 2017 Author Share Posted March 17, 2017 Thanks a Lot that works. With my little English i have some Problems with Docs and Todos Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now