You need to sign in to do that
Don't have an account?
ramakrishna236
rederaspdf
hi,
i have small problem here i am passing string value that value is not converted into string.it display html
my code
class:
public string shtml{get;set;}
public test(){
shtml='<html>';
shtml+='<table border="1">';
shtml+='<tr>';
shtml+='<td>ANU</td>';
shtml+='<td>ANu</td>';
shtml+='</tr>';
shtml+='</table>';
shtml+='</html>';
//shtml = 'HI Anu';
}
}
page:
<apex:page renderAs="" controller="test">
<apex:form >
<apex:outputtext value="{!shtml}" escape="true"> </apex:outputtext>
</apex:form>
</apex:page>
<apex:outputtext value="{!shtml}" escape="true"> ---> will show the default html string
<apex:outputtext value="{!shtml}" escape="false"> ---> can show the Html effect in the VF page