Quantcast
Channel: WordPress.org Forums » [Contact Form 7] Support
Viewing all articles
Browse latest Browse all 49500

normadize on "[Plugin: Contact Form 7] Issues with html entities in quiz definition + nbsp issue"

$
0
0

The fix is to change .text(n[0]) to .html(n[0]) in scripts.js line 220 in here:

$.fn.wpcf7RefillQuiz = function(quiz) {
	return this.each(function() {
		var form = $(this);

		$.each(quiz, function(i, n) {
			form.find(':input[name="' + i + '"]').clearFields();
			form.find(':input[name="' + i + '"]').siblings('span.wpcf7-quiz-label').html(n[0]);
			form.find('input:hidden[name="_wpcf7_quiz_answer_' + i + '"]').attr('value', n[1]);
		});
	});
};

Viewing all articles
Browse latest Browse all 49500

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>