Currently I'm having some issues on my website where I made a noob mistake starting out and now it's becoming large and I am still using the out dated system I had in place when starting.
Basically, my website is using WordPress and my download links are stored within the_content portion on my site instead of in some form of custom meta, the worst part is they're not completely uniform only semi uniform which is where I'm having issues. (I've searched most of stack, and other websites now for a source to fix my issue, and no luck)
Here's some of my code.
СКАЧАТЬ: 320 | 320 | 320 | iTunes | iTunes | iTunes
СКАЧАТЬ: CDQ | CDQ | CDQ | iTunes | iTunes | iTunes
Above is what's usually displayed in the_content portion on my website, it's always lead with СКАЧАТЬ: and followed by at least one link.
I need to replace this entire portion with <a href='download.php'>download</a> the rest is already coded, however my JavaScript knowledge is lacking.
EDIT: Not sure what you meant by update expected output code but here you go.
I want to have the content after СКАЧАТЬ: on my website replaced from the following, with the following.
Current:
<p style="text-align: center;"><strong>СКАЧАТЬ:</strong> <strong><a href="http://example.com">CDQ</a> | <a href="http://example.com">CDQ</a> | CDQ | <a href="http://example.com">iTunes</a> | <a href="http://example.com">iTunes</a> | iTunes</strong></p>
Maybe important, it's always wrapped around with a <p style="text-align: center;"> </p> tag also!
Expected:
<a href='download.php'>download</a>
СКАЧАТЬ:none the less, this sounds like a giant mess.СКАЧАТЬ:like Placeholder said with thea hrefI provided in the bottom portion. Sorry I wasn't more direct, i'm genuinely not sure how to solve this issue other then it needs to be done in Javascript.