-2

The exact snippet, generated by software that must be removed is:

<p style="text-align:center;">Created by <a href="http://www.fancywebsite.com" target="_blank">FancyWebsite</a></p>

Perhaps PHP str_replace() or PHP trim() might work. I found these W3 and stack examples but crash and burned after 30 minutes. Maybe regex can find occurrence and replace with &nbsp;?


If browser has J$ disabled, than visitor will see branding. This javascript snippet will not suffice, because user can "view source" and explore:

<script type="text/javascript">
$("p").each(function() {
if ($(this).html().indexOf("Created by") != -1) {
    $(this).remove();
}
});
</script>

Wishing you good health, wealth and wisdom in 2017 - happy new year from me to you! GLHF

Community
  • 1
  • 1
Uncle Iroh
  • 376
  • 5
  • 17
  • 1
    Bound to be a breach of terms –  Jan 05 '17 at 09:02
  • OOoO my gosh, I didn't even think of that. Thanks for your input. Maybe we'll get another (4) votes to close this question or I'll edit my question to be sneeky on the internet. – Uncle Iroh Jan 05 '17 at 09:04

1 Answers1

1

with just a minor change apply this code.

$("p").each(function() {
if ($(this).html().indexOf("Created by") !== -1) {
    $(this).remove();
}
});

And let me know if any thing else needed. Thanks

  • Might you know of a non-J$ solution? The posted script above works but you can still view source and find code. I wish to completely remove and delete. I just tested your code, that too works! Thanks!!! – Uncle Iroh Jan 05 '17 at 09:27
  • 1
    unfortunately, CSS3 has removed contains element so you can't use it any more by CSS ... –  Jan 05 '17 at 10:54