I am trying to append links inside my posts with external sources.
I want to parse my posts and find attached files inside posts.
For those files I want to append external links in hope that I am going to get oneboxing.
My pure JS looks like this
Unfortunately I can’t find way to combine this with
I read twice
My reqex is bit complicated I have to do two way parsing to get needed results.
I am wondering how I can have several functions and operations inside
to emit only one .
Is there any other function which can append HTML to post ?