Forward Slash won't appear

This is the line of code right now.

		"template"	=> $db->escape_string("<span style=\\"width:{\\$maxwidth}px;height:{\\$maxheight}px;float:left;margin-right:5px;margin-bottom: 2px;text-align:left;\\"><a href=\\"{\\$mybb->settings['bburl']}/index.php?action=visit&amp;id={\\$affiliate['id']}&amp;key={\\$mybb->post_code}\\"><img src=\\"{\\$mybb->settings['uploadspath']}/affiliates/{\\$affiliate['image']}\\" alt=\\"\\" width=\\"auto\\" height=\\"auto\\" title=\\"{\\$affiliate['name']}\\"></a></span>"),

Here is where I need to forward slash to appear

	"template"	=&gt; $db-&gt;escape_string("&lt;span style=\\"width:{\\$maxwidth}px;height:{\\$maxheight}px;float:left;margin-right:5px;margin-bottom: 2px;text-align:left;\\"&gt;&lt;a href=\\"{\\$mybb-&gt;settings['bburl']}/index.php?action=visit&amp;id={\\$affiliate['id']}&amp;key={\\$mybb-&gt;post_code}\\"&gt;&lt;img src=\\"{\\$mybb-&gt;settings['uploadspath']}/affiliates/{\\$affiliate['image']}\\" alt=\\"\\" width=\\"auto\\" height=\\"auto\\" title=\\"{\\$affiliate['name']}\\" [COLOR="#FF0000"][B]/[/B][/COLOR]&gt;&lt;/a&gt;&lt;/span&gt;"),

This is from a MyBB plugin. I decided I wanted to get a completely valid website because I was bored based on the w3s validator. My last thing to do from 53 errors is two errors caused by there being no slash there. I thought adding it just like I have in the second example would be fine but it won’t show.

What does this function do?

I would need to look through the code and check. This is a free MyBB Plugin anyone can download. Is it relevant to what I need? I just need a / to appear.


This is a free MyBB Plugin anyone can download.

Well, I’m not going to download it and look through the code. If you don’t feel like doing it, then let’s wait for someone that knows that particular plugin.

Is it relevant to what I need? I just need a / to appear.

I can’t know for sure, but if you put that / in your string, and after passing it through that function it disappears, it might be relevant.

Did you ask the makers of the plugin?

Oh that’s true. I will check out the function. No I thought sitepoint woulod be 10x faster.

Well it’s always worth a try. There might be someone online who has worked with this plugin and can tell you instantly how to solve the problem. But if there isn’t, you’ll have to do some more work :wink: