Skip to content

How to remove break tag <br> from drupal posts?

londonseolondonseo London, UK
@sven - some drupal sites post articles with lots of break tags <br> within the article.

Is there a way that SER can stop posting to these sites?

Is there a way that SER can remove the tags from posted articles?

Is there a way that SER can automatically select the posts with these tags and delete them?

Thanks

Comments

  • SvenSven www.GSA-Online.de
    Detecting this is a bit complicated as some sites allow it, some not. If you send me the URLs and logins, I might be able to optimize this detection. However there is no way to remove things based on this.
  • donchinodonchino https://pbn.solutions
    It's an old problem with Drupal and Ser. I've also sent some samples back in the days, but Drupal has different options of adding HTML code to posts and therefore it's hard to have a single way of dealing it, I guess. Maybe setting Ser to handle the default option would be most accurate... not sure.
  • londonseolondonseo London, UK
    @sven - I set up the filters below to not post to sites containing the following on the page but it doesnt work so can you give it a try and see:

    <h1>
    <span style=
    <span>
    </span>
    <br>
    <br><br>
    </iframe>
    <iframe width
    0px;border:0px

  • SvenSven www.GSA-Online.de
    where do you enter this?
  • londonseolondonseo London, UK
    In the "skip sites where the following words appear"
  • SvenSven www.GSA-Online.de
    OK and those words are only taken from visible text.
  • londonseolondonseo London, UK
    They appear on some of the verified drupal posts
  • I think you might have to use the html tags for < and > eg. &lt;h1&gt;
  • londonseolondonseo London, UK
    @sven - have u tried it out?
  • SvenSven www.GSA-Online.de
    indeed you have to use &lt; for < and &gt; for >
  • londonseolondonseo London, UK
    @sven - I do not understand what you mean.

    How do I use &lt; for < and &gt; for > in the code below?

    <h1>
    <span style=
    <span>
    </span>
    <br>
    <br><br>
    </iframe>
    <iframe width
    0px;border:0px

  • SvenSven www.GSA-Online.de
    <h1> becomes &lt;h1&gt;
    ...

    Just have a look in the source.
  • londonseolondonseo London, UK
    @sven - this doesn't work because when you import a file with a list of those tags and then close the project and reopen it, you see that the tags are broken down into different lines.
  • SvenSven www.GSA-Online.de
    I can not really follow you. Can you make a screnshot?
  • londonseolondonseo London, UK
    @sven - If you import the following into SER then close the project and reopen it you will see what I mean:

    <h1>
    "&lt;h1&gt;"
    <span style=
    "&lt;span style="
    <span>
    &lt;span&gt;
    </span>
    &lt;/span&gt;
    <br>
    &lt;br&gt;
    <br><br>
    &lt;br&gt;&lt;br&gt;
    </iframe>
    &lt;/iframe&gt;
    <iframe width
    &lt;iframe width
    0px;border:0px

  • londonseolondonseo London, UK
    Even when i put them in quotes "" - they still got removed
  • SvenSven www.GSA-Online.de
    fixed in next update
  • londonseolondonseo London, UK
    Thanks
  • londonseolondonseo London, UK
    @sven - please test this out as SER is still posting to Drupal pages with those tags displayed on the page.
  • SvenSven www.GSA-Online.de
    thats an ongoinf process...you will always have sites doing with with drupal as that is highly configurable and i can not detect every variation. As before, I need the url where this happened (with accoutn if you have).
  • londonseolondonseo London, UK
    @sven - I just emailed you some sample links
  • SvenSven www.GSA-Online.de
    improved the engine based on this.
  • londonseolondonseo London, UK
    Cheers
Sign In or Register to comment.