Search

I have a problem where given something like:

<h2>Headline</h2>
<p>Lorem Ipsum</p>

I’d ideally like to be able to insert an <img> tag right after the <p> to have:

<h2>Headline</h2>
<p><img src="#"/>Lorem Ipsum</p>

Alas, my XSL-fu isn’t quite strong enough to figure out how to do this. Is it possible?

Check out Allen’s Ninja Technique for manipulating HTML.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details