Print the input box text as simple text instead of html tag

Print the input box text as simple text instead of html tag

Content Index :

like below fixes the issue You can use html_entity_decode. It decodes the html tags and shows the text as it is.
According to its documentation:
$phone = html_entity_decode("<a href='tel:704-372-6846'>704 372 6846</a>
echo $phone;

No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

HTML Simple Form Text Input Style

Tag : html , By : wraith
Date : March 29 2020, 07:55 AM
it fixes the issue If you're using HTML5 the Placeholder attribute is the way to go.
If not just grab one of the many watermark scripts out there for jQuery or Javascript (e.g. jQuery Watermark.
// CSS 

<input type="text" name="name" id="name" size="30" value="Edit Name" />

// jQuery
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
  $('#name').bind('focus', function() {
    if ($(this).val() == 'Edit Name') {
      $(this).val('John Doe').css('color', '#000');

how to print date in input text box in html

Tag : javascript , By : Amit Battan
Date : March 29 2020, 07:55 AM
will help you You have to
correctly create the Date object (you're missing new) format it according to rfc3339 (ex: 2012/12/30)
document.getElementById("fname").value = Date();
var now = new Date();
var formatedDate = now.getFullYear() + '-' + (now.getMonth() + 1) + '-' + now.getDate();‚Äč
document.getElementById("fname").value = formatedDate;

get text from input and print it in a div in real time html

Tag : javascript , By : vdavidovski
Date : March 29 2020, 07:55 AM
should help you out value attribute is not associated with div. So you have to use innerHTML for div
function getVal() {
    var x = document.getElementById("fname");
    document.getElementById("icard").innerHTML = x.value.toUpperCase();

How do I make this HTML Print Screen code a simple button instead of text?

Tag : html , By : Ben
Date : March 29 2020, 07:55 AM
Any of those help use the button tag :
<button onclick="window.print();">CLICK HERE TO PRINT FORM!</button>

css to make input and textarea looks like simple html text

Tag : html , By : richardD
Date : March 29 2020, 07:55 AM
this will help I had form with a lot of and