4 ms·
I just added it. The preview text will become bold, but the idea is that you can send any kind of HTML to inject.
by strzibny 6y ago
I just added it. The preview text will become bold, but the idea is that you can send any kind of HTML to inject.
- yuppiepuppie 6y agoGreat job! Now I get it!
- swanson 6y agoI think the article would be better if you were to include even a basic template instead of just adding the <strong> tag. Right now, my first impression would be "why not just wrap the content in <strong> in JS instead of making a network request on every keystroke?" The benefit of being able to reuse the server template logic isn't being demonstrate because of the simplicity of the example.
- strzibny 6y agoI was thinking of that, but I think the point is that you do any transformation in Ruby. I focused on how to do that. Thanks for the feedback.