• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Proplem with special characters

Hello, everybody,
I have a problem with the special characters.
I would have to make many entries with an array and there are special characters like this " and ' with it.
If I put this in an input like this, it will be displayed.
<input type="text" class="form-control" placeholder="" value="&quot;A&quot; Cell Incubator">

But if I use a "str_replace" to help, nothing is displayed.

PHP Code:
= array("&quot;");
$ersetze    = array('"');
$text        "&quot;A&quot; Cell Incubator";
$texts        "&quot;A&quot; Cell Incubator";
<ul class="">
    <li><h1>Sonderzeichen "</h1>
        <ul class="">
            <li><?php echo str_replace($suche$ersetze$text); ?></br>
                <input type="text" class="form-control" placeholder="" value="<?php echo str_replace($suche$ersetze$text); ?>"></li>

My goal is to display the HTML code for special characters in the input.


Try this: https://www.codeigniter.com/user_guide/h...eld-values

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

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