Skip to content

Conversation

@glaszig
Copy link

@glaszig glaszig commented Jul 18, 2021

i'm trying to do this in a template:

{{ regexReplace "\n" commit.message "<br>" }}

to get better html formatting in emails sent by drillster/drone-email.

only it does not work because raymond will escape values returned from helpers unless it's wrapped with raymend.SafeString.

here i implement safeRegexReplace and the more specific htmlLineBreaks helpers to allow things like this and give a specific helper for the use-case.

@glaszig glaszig force-pushed the html-line-breaks branch from 1bf6d46 to ad2b561 Compare July 19, 2021 00:08
@glaszig
Copy link
Author

glaszig commented Aug 9, 2021

anything i need to do or lgtm? i need that feature.

@glaszig
Copy link
Author

glaszig commented Dec 5, 2021

bump

@glaszig
Copy link
Author

glaszig commented Dec 12, 2021

is this project dead? do i need to look for replacement?

@glaszig glaszig requested a review from tboerger January 3, 2022 20:02
@glaszig
Copy link
Author

glaszig commented Feb 12, 2022

this is really frustrating, guys.

@glaszig
Copy link
Author

glaszig commented Jun 12, 2022

...

@glaszig
Copy link
Author

glaszig commented Sep 3, 2023

will somebody at @harness have some mercy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants