• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Less than sign in libraries?

#1
[eluser]moriokasan[/eluser]
Hi all, this drives me nuts so please help me.

I have a simple library in /ci/application/libraries/ where I have a function
Code:
function getString()
{
    return "<p>something</p>";
}
The output of this function is nothing, an empty string.

But if I change the function to remove the 'less than' signs it works:
Code:
function getString()
{
    return "p>something/p>"
}
which returns "p>something/p>" as it should.

Of course this is not exactly my code but you got the idea.

Is there a way to include that "<" sign in the returned string? I tried with &lt; but in the HTML then it is not parsed as an HTML tag...

Thanks !


Messages In This Thread
Less than sign in libraries? - by El Forum - 09-25-2011, 03:31 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.