Domanda

Come produrre qualcosa come usare il tag cfutput.

     <cfoutput>
         <this is my word="word" value="#abcg#">
     </cfoutput>
.

Questo non mi dandone nulla quando utilizzo la citazione single lo stampa con quotazione single come

     <cfoutput>
        <'this is my word="word" value="#abcg#"'>
     </cfoutput>
.

Risultato è:

      <'this is my word="word" value="#abcg#"'>
.

Come posso ottenere solo

    <this is my word="word" value="#abcg#">
.

Grazie per l'aiuto

È stato utile?

Soluzione

È possibile utilizzare quanto segue per sfuggire al browser cercando di renderlo come tag HTML

<cfoutput>
    &lt;this is my word="word" value="#abcg#"&gt;
 </cfoutput>
.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top